/**
 * 
 */
package com.sysmanage.etl.model;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

/**
 * @author Yu Jou 2014年7月21日
 */
@Entity
@Table(name = "ETL_ERRORLOG")
public class ETL_ErrorLog implements Serializable {

	private static final long serialVersionUID = 3291323784756411180L;

	private Integer errorLog_id;

	private ETL_Excel excel;
	// 错误原因
	private String errorLog_cause;
	// Excel列索引
	private Integer excelColumn_Index;

	private Date date = new Date();
	private Integer status = 0; // 0 未处理,1 重新处理, 2 忽略

	@Id
	@GeneratedValue
	@Column(name = "ERRORLOG_ID")
	public Integer getErrorLog_id() {
		return errorLog_id;
	}

	public void setErrorLog_id(Integer errorLog_id) {
		this.errorLog_id = errorLog_id;
	}

	@Column(name = "ERRORLOG_CAUSE")
	public String getErrorLog_cause() {
		return errorLog_cause;
	}

	public void setErrorLog_cause(String errorLog_cause) {
		this.errorLog_cause = errorLog_cause;
	}

	@Column(name = "EXCELCOLUMN_INDEX")
	public Integer getExcelColumn_Index() {
		return excelColumn_Index;
	}

	public void setExcelColumn_Index(Integer excelColumn_Index) {
		this.excelColumn_Index = excelColumn_Index;
	}

	@ManyToOne
	@JoinColumn(name = "EXCEL_ID")
	public ETL_Excel getExcel() {
		return excel;
	}

	public void setExcel(ETL_Excel excel) {
		this.excel = excel;
	}

	@Column(name = "ERRORLOG_TIME")
	public Date getDate() {
		return date;
	}

	public void setDate(Date date) {
		this.date = date;
	}

	@Column(name = "STATUS")
	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

}
